package com.egao.common.module.company.entity;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * 附件表(Attachment)表实体类
 *
 * @author dl
 * @since 2021-02-22 09:07:15
 */
@SuppressWarnings("serial")
@ApiModel(description = "附件表")
@Data
@TableName("Attachment")
public class Attachment implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    @ApiModelProperty("主键编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    @ApiModelProperty("附件类型：1：招聘信息 2：宣讲会 3：空中宣讲会 4:双选会")
    private Integer type;
    
    @ApiModelProperty("业务编号（招聘编号、宣讲会编号等）")    
    private Integer businessId;
    
    @ApiModelProperty("附件名称")    
    private String name;
    
    @ApiModelProperty("文件类型")    
    private String ext;
    
    @ApiModelProperty("文件存储路径")    
    private String path;
    
    @ApiModelProperty("访问路径")    
    private String url;
    
    @ApiModelProperty("文件大小")    
    private String size;
    
    @ApiModelProperty("上传人")    
    private Integer createBy;
    
    @ApiModelProperty("添加时间")    
    private Date createTime;
    
    @ApiModelProperty("编辑时间")    
    private Date updateTime;
    
    @ApiModelProperty("逻辑删除 0正常 1删除")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty("原始编号id")
    private String oldId;
}